package cn.sfrog.project.biz.admin.mapper;

import cn.sfrog.project.biz.admin.domain.BizStudyProjectMember;
import cn.sfrog.project.biz.admin.domain.vo.BizStudyProjectMemberQueryVO;
import cn.sfrog.project.biz.admin.domain.vo.BizStudyProjectMemberResultVO;
import cn.sfrog.project.biz.admin.domain.vo.BizStudyProjectMemberVO;
import cn.sfrog.project.biz.web.vo.study.AppStudyProjectMemberVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 学研项目成员Mapper接口
 */
public interface BizStudyProjectMemberMapper extends BaseMapper<BizStudyProjectMember> {
    /**
     * 查询学研项目成员
     *
     * @param id 学研项目成员主键
     * @return 学研项目成员
     */
    BizStudyProjectMemberVO selectBizStudyProjectMemberById(Long id);

    /**
     * 查询学研项目成员列表
     *
     * @param query 学研项目成员
     * @return 学研项目成员集合
     */
    List<BizStudyProjectMemberVO> selectBizStudyProjectMemberList(BizStudyProjectMemberQueryVO query);

    /**
     * 查询项目成员
     * @param projectId
     * @return
     */
    List<BizStudyProjectMemberResultVO> selectProjectMemberListByProjectId(@Param("projectId") Long projectId);

    /**
     * App-查询项目成员
     * @param projectId
     * @return
     */
    List<AppStudyProjectMemberVO> selectAppProjectMemberList(@Param("projectId") Long projectId);
}
